class UserInfo {
      String code;
      String password;
      String name;
      String email;

      Integer orderNum;
      String fullName;
      String type;
      static hasMany = [authorities:Authority];
 
      Date creatTime;
      Date lastModifyTime;
      Date lastLoginTime;
    static constraints = {
          code(nullable:false,size:5..16,unique:true);
          password(nullable:false,size:7..16);
          name(nullable:false,size:4..16,unique:true);
          email(email:true,blank:false);

          orderNum(number:true,nullable:true);
          type(nullable:true,string:true);
          creatTime(date:true);
          lastModifyTime(date:true);
          lastLoginTime(date:true);

      }
}
